package app.server.project.cloud.random.dto.device;

import app.server.project.cloud.random.db.entity.DevNameEntity;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.persistence.Column;
import lombok.Data;
import org.hibernate.annotations.Comment;

@Data
public class DevChNameDto {
    /**
     * 支路id
     */
    private int devCh;
    /**
     * 名称
     */
    private String name;
    public static DevChNameDto of(DevNameEntity devNameEntity){
        var ret=new DevChNameDto();
        BeanUtil.copyProperties(devNameEntity,ret,true);
        return ret;
    }
}
